import request from '@/utils/request'

// 查询订单流程列表
export function listProcess(query) {
  return request({
    url: '/custom/process/list',
    method: 'get',
    params: query
  })
}

// 查询订单流程详细
export function getProcess(orderInfoProcessId) {
  return request({
    url: '/custom/process/' + orderInfoProcessId,
    method: 'get'
  })
}

// 新增订单流程
export function addProcess(data) {
  return request({
    url: '/custom/process',
    method: 'post',
    data: data
  })
}

// 修改订单流程
export function updateProcess(data) {
  return request({
    url: '/custom/process',
    method: 'put',
    data: data
  })
}

// 删除订单流程
export function delProcess(orderInfoProcessId) {
  return request({
    url: '/custom/process/' + orderInfoProcessId,
    method: 'delete'
  })
}

// 导出订单流程
export function exportProcess(query) {
  return request({
    url: '/custom/process/export',
    method: 'get',
    params: query
  })
}